package cn.liujianbo.example.pattern.strategy.cash;

/**
 * @author 刘建波
 * @date 2022-04-02 10:25
 */
public class CashRebate implements CashInterface {
    private double rebate = 1;

    public CashRebate(double rebate) {
        this.rebate = rebate;
    }

    @Override
    public double acceptCash(double money) {
        return money * rebate;
    }
}
